﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeleteFlight.aspx.cs" Inherits="DeleteFlight" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Style/GongGong.css" rel="Stylesheet" type="text/css" />
    <link href="Style/Server.css" rel="Stylesheet" type="text/css" />
    <link rel="Stylesheet" rev="Stylesheet" href="Scripts/jock-citypicker-2.0.min.css" type="text/css" />
    <script type="text/javascript" src="Scripts/jock-citypicker-2.0.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery-1.7.2.min.js"></script>   
    <script type="text/javascript" src="Scripts/WdatePicker.js"></script>
    <script type="text/javascript">
        window.onload = function () {
            var a = document.getElementById("From_Station_Text");
            var b = document.getElementById("To_Station_Text");

            a.onclick = function () {
                citypicker.show({ left: 80, top: 20 }, function (data) {
                    a.value = data;
                });
            };

            var p = { left: 323, top: 20 };
            var fn1 = function (city) {
                b.value = city;
            };
            b.onclick = function () {
                citypicker.bind(fn1).fix(p).show();
            };
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainContent" style="margin:0 auto;">
        <div class="head" style="padding-top:10px;">
        <h1 style="text-align:center; color:Red">删除航班</h1>
        </div>
        <div class="SearchItem">
            <div style="float:left; width:675px; height: 80px;">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
            	<tr>
            		<td>
                        <asp:label id="FlightNumLabel" runat="server" >航班号:</asp:label>
                    </td>
                        
                    <td>
                        <asp:TextBox id="FlightNum" runat="server" ></asp:TextBox>
                    </td>
                    <td>
                        <asp:label id="FromTimeLabel" runat="server" >航班时间:</asp:label>
                    </td>
                    <td>
                        <asp:TextBox id="FromTime" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></asp:TextBox>
                    </td>                   
            	</tr>
                <tr>
            		<td>
                        <asp:label id="FromAddressLabel" runat="server" >出发地:</asp:label>
                    </td>
                        
                    <td>
                        <asp:TextBox id="From_Station_Text" runat="server" ></asp:TextBox>
                    </td>
                    <td>
                        <asp:label id="ToAddressLabel" runat="server" >目的地:</asp:label>
                    </td>
                        
                    <td>
                        <asp:TextBox id="To_Station_Text" runat="server" ></asp:TextBox>
                    </td>
            	</tr>
            </table>
            </div>
            <div style="float:left; width:124px; height: 80px;">
                <asp:Button text="查询" 
                    style=" margin-left:14%; margin-top:25%; height: 35px; width: 108px;" 
                    runat="Server" id="Search" onclick="Search_Click"></asp:Button>
            </div>
        </div>
        <div class="Content" >
            <asp:GridView ID="GridView_lookup" runat="Server" class="GridViewStyle" 
                    AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" BorderStyle="Ridge" PageSize="11" Height="20px" 
                style="margin-right: 63px" onrowdeleting="GridView_lookup_RowDeleting">
                    <FooterStyle BackColor="#990000" Font-Bold="true" ForeColor="White" />
                    <Columns>
                <asp:TemplateField HeaderText="航班编号">
                    <EditItemTemplate>
                        &nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Eval("FlightID") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("FlightID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="航班号">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FlightNumber") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FlightNumber") %>'></asp:Label>
                    </ItemTemplate>              
                </asp:TemplateField>
                <asp:TemplateField HeaderText="飞机型号">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FlightType") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("FlightType") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="头等舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FirstSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("FirstSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="头等舱票价 ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("FirstSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("FirstSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="商务舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("BusinessSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("BusinessSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="商务舱票价">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("BusinessSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("BusinessSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="经济舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("EconomicSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("EconomicSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="经济舱票价">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("EconomicSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("EconomicSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出发地">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("FromAddress") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label10" runat="server" Text='<%# Bind("FromAddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="目的地">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("ToAddress") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label11" runat="server" Text='<%# Bind("ToAddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出发时间">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("FromDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label12" runat="server" Text='<%# Bind("FromDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="到达时间 ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("ToDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label13" runat="server" Text='<%# Bind("ToDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作"></asp:TemplateField>
                <asp:CommandField  ButtonType="Button" ShowDeleteButton="true"/>
                    </Columns>
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="true" ForeColor="White" />
                    <PagerStyle BackColor="white" ForeColor="#0000066" HorizontalAlign="Left" />
                    <HeaderStyle BackColor="#006699" Font-Bold="true" ForeColor="White" />
                </asp:GridView>
        </div>
        <!-- <div class="Footer" >
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
    	        <tr style="height:40px">
    		        <td align="center">
                         <input type="submit" id="OK" value="确认" class="Button"/>
                    </td>
    	        </tr>
            </table>
        </div>   -->
    </div>
    </form>
</body>
</html>
